home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / Python 1.3.3 / Python 133 68K / Lib / stdwin / anywin.py < prev    next >
Text File  |  1996-05-20  |  235b  |  15 lines

  1. # Module 'anywin'
  2. # Open a file or directory in a window
  3.  
  4. import dirwin
  5. import filewin
  6. import os
  7.  
  8. def open(name):
  9.     print 'opening', name, '...'
  10.     if os.path.isdir(name):
  11.         w = dirwin.open(name)
  12.     else:
  13.         w = filewin.open(name)
  14.     return w
  15.